package cn.wsn2018.tools.schedule;

import cn.wsn2018.tools.util.ServletUtil;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.time.LocalDateTime;
import java.util.Iterator;
import java.util.Map;

/**
 * @program: tools
 * @description
 * @author: songDaisong
 * @create: 2019-12-17 14:19
 **/
@Component
public class ScheduledTask {
    //每天凌晨会清空登录失败记录
    @Scheduled(cron = "0 0 0 * * *")
    public void resetResMap(){
        ServletUtil.getResMap().clear();

    }
}
